package team.yidong.fenda.wx.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.entity.*;
import team.yidong.fenda.repository.*;

import java.text.ParseException;

/**
 * Created by xuanlong on 2017/11/14.
 */
@Controller
public class Test1 {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    GuaHaoRepository guaHaoRepository;
    @Autowired
    GuahaoHistoryRepository guahaoHistoryRepository;
    @Autowired
    HospitalRepository hospitalRepository;

    @RequestMapping("/wx/liuxuanlong1")
    @ResponseBody
    public void test1() throws ParseException {
       HospitalDepartment hospitalList = hospitalRepository.findSecondHospital();

            System.out.println(hospitalList.getDepartmentName());

    }

}


